package com.ruoyi.business.service.impl;
 
import com.ruoyi.business.domain.LpSupplier;
import com.ruoyi.business.mapper.LpSupplierMapper;
import com.ruoyi.business.service.LpSupplierService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;
import java.util.List;
/**
 * @Author makejava
 * @Desc (LpSupplier)表服务实现类
 * @Date 2024-05-15 09:26:27
 */
 
@Service
public class LpSupplierServiceImpl implements LpSupplierService {
 
    @Resource
    private LpSupplierMapper lpSupplierMapper;
 
 
    /**
     * 查询列表数据
     * @param lpSupplier 实例对象
     * @return 对象列表
     */
    @Override
    public List<LpSupplier> queryAll(LpSupplier lpSupplier) {
        List<LpSupplier> dataList = lpSupplierMapper.queryAll(lpSupplier);
        return dataList;
    }
 
    @Override
    public LpSupplier queryById(Integer supplierId) {
        return lpSupplierMapper.queryById(supplierId);
    }
 
 
    @Override
    public int insert(LpSupplier lpSupplier) {
        return lpSupplierMapper.insert(lpSupplier);
    }
 
 
    @Override
    public int update(LpSupplier lpSupplier) {
        return lpSupplierMapper.update(lpSupplier);
    }
 
 
    @Override
    public int deleteById(Integer supplierId) {
        return lpSupplierMapper.deleteById(supplierId);
    }
    
      /**
     * 通过id批量删除
     */  
    @Override
    public int batchRemove( Integer[] supplierIds) {
        return lpSupplierMapper.batchRemove(supplierIds);
    }
    
}
